<template>
  <div class="row form-horizontal pt10">
    <div class="col-sm-12 ohOptionPaenl">
      <span v-for="(item,index) in optiondata" class="ohOption" :class="{selected:item.selected}" @click="optionClick(index)" ><i class="selctedIcon glyphicon glyphicon-ok"></i>{{item.text}}</span>
    </div>
  </div>
</template>

<script type="text/javascript">
  export default {
    name:'optionHandle',
    props: ['optiondata'],
    methods:{
      optionClick:function(index){
        this.$emit("optionevent",index);
      }
    }
  }
</script>
